package homework02.test01;

public class ManagerAndCoderTest {

    public static void main(String[] args) {

        System.out.println("方法一:");
        Manager manager = new Manager("一龙", 123, 15000.0, 6000.0);
        manager.work();

        Coder coder = new Coder("方便", 135, 10000.0, 2000.0);
        coder.work();

        System.out.println("----------------------------------------");

        System.out.println("方法二:");

        Manager manager1 = new Manager();
        manager1.setId(123);
        manager1.setName("一龙弟弟");
        manager1.setSalary(15000.0);
        manager1.setBonus(6000.0);
        manager1.work();

        Coder coder1 = new Coder();
        coder1.setId(135);
        coder1.setName("方便弟弟");
        coder1.setSalary(2000.0);
        coder1.setSalary(200.0);
        coder1.work();

    }
}
